<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Grid</title>
  </head>
  <style>
    .grid-wrapper {
      display: grid;
      margin-bottom: 20px;
    }
    .grid-wrapper div {
      background: green;
      color: white;
    }
    .style-1 {
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: minmax(30px, auto);
      grid-gap: 10px;
    }
    .box1 {
      grid-column-start: 1;
      grid-column-end: 3;
      grid-row-start: 1;
      grid-row-end: 3;
    }
    .box2 {
      grid-column-start: 3;
      grid-column-end: 4;
      grid-row-start: 1;
      grid-row-end: 4;
    }
  </style>
  <body>
    <div class="grid-wrapper style-1">
      <div>1</div>
      <div>2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
    </div>

    <div class="grid-wrapper style-1">
      <div class="box1">1</div>
      <div class="box2">2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
    </div>
  </body>
</html>
